package cn.slipi.pan.common.response;

import java.io.Serial;
import java.io.Serializable;
import java.util.List;

/**
 * 分页查询返回结果
 *
 * @author LEE
 */
public class PageResult<T> implements Serializable {
    @Serial
    private static final long serialVersionUID = 1L;

    private List<T> list;

    private Long total;

    public PageResult() {
    }

    public PageResult(List<T> list) {
        this(list, null);
    }

    public PageResult(List<T> list, Long total) {
        setList(list);
        setTotal(total);
    }

    public List<T> getList() {
        return this.list;
    }

    public void setList(List<T> list) {
        this.list = list;
    }

    public Long getTotal() {
        return this.total;
    }

    public void setTotal(Long total) {
        this.total = total;
    }

}
